package main.fas.org.testlib;

import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Locale;

/**
 * Created by lb on 2016/1/28.
 */
public class TimeUtils {

    private static SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH-mm-ss",Locale.getDefault());

    /**
     * 获取当前时间的格式化字符串
     * <b>yyyy-MM-dd HH-mm-ss<b/>
     * @return not null string
     */
    public static String getCurrentFormatTime() {
        return sdf.format(new Date(System.currentTimeMillis()));
    }




}
